/******************************************************************************
//             INTEL CORPORATION PROPRIETARY INFORMATION
//  This software is supplied under the terms of a license agreement or
//  nondisclosure agreement with Intel Corporation and may not be copied
//  or disclosed except in accordance with the terms of that agreement.
//        Copyright (c) 2000-2001 Intel Corporation. All Rights Reserved.
//
//  Description:
//      Intel(R) JPEG library for X platform 
//
********************************************************************************/
#ifndef _IJTABLE_H
#define _IJTABLE_H

int ijCalcQualityFactor(int nSrcQuality);

IJXRESULT ijBuildEncodeQuantTables(int                nNumComp,
                                   Ipp16s             *pQuantSpec,
                                   IJBITTREAMSTATE    *pStream,
                                   IJENCODESTATE      *pEncodeState);
IJXRESULT ijBuildDecodeQuantTables(int                nNumComp,
                                   IJENCODESTATE      *pEncodeState);

IJXRESULT ijBuildScanHuffTables_BLS(IJBITTREAMSTATE *pStream,
                                      IJENCODESTATE *pEncodeState);

///////////////////////////////////////
#ifdef _BASELINE_A

IJXRESULT ijBuildScanHuffTables_ABLS (int **ppFreq,
                                      IJBUFFER *pIJXBuffer,
                                      IJBITTREAMSTATE *pStream,
                                      IJENCODESTATE *pEncodeState);
#endif
///////////////////////////////////////

IJXRESULT ijBuildScanHuffTables_P(int **ppFreq,
                                  IJBITTREAMSTATE *pStream,
                                  IJENCODESTATE *pEncodeState);

IJXRESULT ijBuildDefaultDecodeTables(IJDECODESTATE *pDecodeState);

#endif

/* EOF */
